<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    console.log([1,2,3,4,5].slice(-2,-1) );
    [].__proto__.slice === Array.prototype.slice;
    [].slice === Array.prototype.slice;

    function sortNumbers(){
        return Array.prototype.slice.call(arguments).sort();
    }

    const SortNumbers = (...numbers) => numbers.sort();
</script>
</html>